home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Full / Paragon Drive Backup 9 / DB90_SE_x32.msi / Data1.cab / _68E1E7EB445344EE9594E7012574A0B5 < prev    next >
Extensible Markup Language  |  2008-06-28  |  7KB  |  196 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  4.     <xsl:output 
  5.           method="html" 
  6.           version="4.0" 
  7.           encoding="UTF-8" 
  8.           omit-xml-declaration="yes" 
  9.           indent="yes"/>
  10.           
  11.     <xsl:template match="/">
  12.         <html>
  13.             <head>
  14.                 <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
  15.                 <title>Report</title>
  16.             </head>
  17.             <body>
  18.             <table border="0" width="100%">
  19.           <tr>
  20.             <td colspan="3">
  21.               <h3>QT_TRANSLATE_NOOP("QObject", "Volume") <xsl:value-of select="Root/Report/VolumeInfo/Label"/> <xsl:value-of select="Root/Report/VolumeInfo/Drive"/></h3>
  22.             </td>
  23.                 </tr>
  24.           <tr>
  25.             <td colspan="3">
  26.               <hr>
  27.             </td>
  28.                 </tr>
  29.               <tr>
  30.                     <td align="right"><b><nobr>QT_TRANSLATE_NOOP("QObject", "Volume Size:")</nobr></b></td>
  31.                     <td><nobr><xsl:value-of select="Root/Report/VolumeInfo/VolumeSize"/></nobr></td>
  32.             <td width="100%"/>
  33.                 </tr>
  34.               <tr>
  35.                     <td align="right"><b>QT_TRANSLATE_NOOP("QObject", "Cluster size:")</b></td>
  36.                     <td><xsl:value-of select="Root/Report/VolumeInfo/ClusterSize"/></td>
  37.             <td width="100%"/>
  38.                 </tr>
  39.               <tr>
  40.                     <td align="right"><b>QT_TRANSLATE_NOOP("QObject", "Free Space:")</b></td>
  41.                     <td><xsl:value-of select="Root/Report/VolumeInfo/FreeSpace"/></td>
  42.             <td width="100%"/>
  43.                 </tr>
  44.               <tr>
  45.                     <td align="right"><b>QT_TRANSLATE_NOOP("QObject", "Used Space:")</b></td>
  46.                     <td><xsl:value-of select="Root/Report/VolumeInfo/UsedSpace"/></td>
  47.             <td width="100%"/>
  48.                 </tr>
  49.         </table>
  50.  
  51.         <table border="0" width="100%">
  52.           <tr>
  53.             <td colspan="3">
  54.               <br/><h3>QT_TRANSLATE_NOOP("QObject", "Free space fragmentation")</h3>
  55.             </td>
  56.                 </tr>
  57.           <tr>
  58.             <td colspan="3">
  59.               <hr>
  60.             </td>
  61.                 </tr>
  62.           <xsl:choose>
  63.             <xsl:when test="number(Root/Report/VolumeInfo/FreeSpaceInBytes) = 0">
  64.               <tr>
  65.                 <td colspan="3">QT_TRANSLATE_NOOP("QObject", "There is no free space on this volume.")</td>
  66.               </tr>
  67.             </xsl:when>
  68.             <xsl:otherwise>
  69.               <tr>
  70.                 <td align="right"><nobr><b>QT_TRANSLATE_NOOP("QObject", "Total Fragments:")</b></nobr></td>
  71.                 <td><nobr><xsl:value-of select="Root/Report/VolumeInfo/FragFreeSpace"/></nobr></td>
  72.                 <td width="100%"/>
  73.               </tr>
  74.               
  75.               <tr>
  76.                 <td align="right"><nobr><b>QT_TRANSLATE_NOOP("QObject", "Fragmentation:")</b></nobr></td>
  77.                 <td><nobr><xsl:value-of select="Root/Report/VolumeInfo/FreeSpaceFragmentation"/>%</nobr></td>
  78.                 <td width="100%"/>
  79.               </tr>
  80.               
  81.             </xsl:otherwise>
  82.           </xsl:choose>
  83.         </table>
  84.         
  85.             <table border="0" width="100%">
  86.           <tr>
  87.             <td colspan="3">
  88.               <br/><h3>QT_TRANSLATE_NOOP("QObject", "Bad clusters fragmentation")</h3>
  89.             </td>
  90.                 </tr>
  91.           <tr>
  92.             <td colspan="3">
  93.               <hr>
  94.             </td>
  95.                 </tr>
  96.           <xsl:choose>
  97.             <xsl:when test="number(Root/Report/VolumeInfo/BadSpaceInBytes) = 0">
  98.               <tr>
  99.                 <td colspan="3">QT_TRANSLATE_NOOP("QObject", "No bad blocks found.")</td>
  100.               </tr>
  101.             </xsl:when>
  102.             <xsl:otherwise>
  103.               <tr>
  104.                 <td align="right"><b><nobr>QT_TRANSLATE_NOOP("QObject", "Fragments Size:")</nobr></b></td>
  105.                 <td><nobr><xsl:value-of select="Root/Report/VolumeInfo/BadSpace"/></nobr></td>
  106.                 <td width="100%"/>
  107.               </tr>
  108.               <tr>
  109.                 <td align="right"><b><nobr>QT_TRANSLATE_NOOP("QObject", "Total Fragments:")</nobr></b></td>
  110.                 <td><nobr><xsl:value-of select="Root/Report/VolumeInfo/BadSpaceFragments"/></nobr></td>
  111.                 <td width="100%"/>
  112.               </tr>
  113.             </xsl:otherwise>
  114.           </xsl:choose>
  115.         </table>
  116.  
  117.             <table border="0" width="100%">
  118.           <tr>
  119.             <td colspan="3">
  120.               <br/><h3>QT_TRANSLATE_NOOP("QObject", "Files fragmentation")</h3>
  121.             </td>
  122.                 </tr>
  123.           <tr>
  124.             <td colspan="3">
  125.               <hr>
  126.             </td>
  127.                 </tr>
  128.               <tr>
  129.                     <td align="right"><b><nobr>QT_TRANSLATE_NOOP("QObject", "Total Files:")</nobr></b></td>
  130.                     <td><nobr><xsl:value-of select="Root/Report/FilesInfo/FilesTotal"/></nobr></td>
  131.             <td width="100%"/>
  132.                 </tr>
  133.               <tr>
  134.                     <td align="right"><b><nobr>QT_TRANSLATE_NOOP("QObject", "Fragmented Files:")</nobr></b></td>
  135.                     <td><nobr><xsl:value-of select="Root/Report/FilesInfo/FilesFragmented"/></nobr></td>
  136.             <td width="100%"/>
  137.                 </tr>
  138.         </table>
  139.  
  140.             <table border="0" width="100%">
  141.           <tr>
  142.             <td colspan="3">
  143.               <br/><h3>QT_TRANSLATE_NOOP("QObject", "Folders fragmentation")</h3>
  144.             </td>
  145.                 </tr>
  146.           <tr>
  147.             <td colspan="3">
  148.               <hr>
  149.             </td>
  150.                 </tr>
  151.               <tr>
  152.                     <td align="right"><b><nobr>QT_TRANSLATE_NOOP("QObject", "Total Folders:")</nobr></b></td>
  153.                     <td><nobr><xsl:value-of select="Root/Report/FilesInfo/FoldersTotal"/></nobr></td>
  154.             <td width="100%"/>
  155.                 </tr>
  156.               <tr>
  157.                     <td align="right"><b><nobr>QT_TRANSLATE_NOOP("QObject", "Fragmented Folders:")</nobr></b></td>
  158.                     <td><nobr><xsl:value-of select="Root/Report/FilesInfo/FoldersFragmented"/></nobr></td>
  159.             <td width="100%"/>
  160.                 </tr>
  161.         </table>
  162.  
  163.               <xsl:if test="number(Root/Report/MFTInfo/UsedMFTRecords) != 0">
  164.           <table border="0" width="100%">
  165.           <tr>
  166.             <td colspan="3">
  167.               <br/><h3>QT_TRANSLATE_NOOP("QObject", "MFT fragmentation")</h3>
  168.             </td>
  169.                 </tr>
  170.           <tr>
  171.             <td colspan="3">
  172.               <hr>
  173.             </td>
  174.                 </tr>
  175.             <tr>
  176.               <td align="right"><b><nobr>QT_TRANSLATE_NOOP("QObject", "Total MFT Size:")</nobr></b></td>
  177.               <td><nobr><xsl:value-of select="Root/Report/MFTInfo/MFTSize"/></nobr></td>
  178.               <td width="100%"/>
  179.             </tr>
  180.             <tr>
  181.               <td align="right"><b><nobr>QT_TRANSLATE_NOOP("QObject", "MFT Records in Use:")</nobr></b></td>
  182.               <td><nobr><xsl:value-of select="Root/Report/MFTInfo/UsedMFTRecords"/></nobr></td>
  183.               <td width="100%"/>
  184.             </tr>
  185.             <tr>
  186.               <td align="right"><b><nobr>QT_TRANSLATE_NOOP("QObject", "MFT Fragments:")</nobr></b></td>
  187.               <td><nobr><xsl:value-of select="Root/Report/MFTInfo/MFTFragments"/></nobr></td>
  188.               <td width="100%"/>
  189.             </tr>
  190.           </table>
  191.         </xsl:if>
  192.             </body>
  193.         </html>
  194.     </xsl:template>
  195. </xsl:stylesheet>
  196.